xend: passthrough: fix physdev_map_pirq invocation
authorKeir Fraser <keir.fraser@citrix.com>
Mon, 7 Sep 2009 07:38:39 +0000 (08:38 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Mon, 7 Sep 2009 07:38:39 +0000 (08:38 +0100)
commit345fbe6cb410fb43c7b269a54d1c60e1e025f393
tree5f1c5480fb36b5ca18c3b15601ae0b45b19b2fbf
parent0c98ffd10a52bafc85caabff2f1d97154db1c65b
xend: passthrough: fix physdev_map_pirq invocation

For those devices not having INTx (like VFs), avoid calling map_pirq,
otherwise the guest cannot be started successfully.

Also avoid calling this hypercall for hvm guest, this is done in the
device model.

Signed-off-by: Qing He <qing.he@intel.com>
tools/python/xen/xend/server/pciif.py